<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" type="text/css" href="../../js/lib/theme-chalk/index.css" />
		<link rel="stylesheet" type="text/css" href="../../css/myCustomer.css" />
		<link rel="stylesheet" type="text/css" href="../../css/my_commont.css" />
		<link rel="stylesheet" type="text/css" href="index.css" />
		<script src="../../common/utilCookie.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../common/author.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/vue.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/axios.min.js"></script>
		<script src="../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
		<!-- 引入组件库 -->
		<script src="../../js/lib/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../common/judegetEmpty.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/aixos-init.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/config.js" type="text/javascript" charset="utf-8"></script>
		<script src="index.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			[v-cloak] {
				display: none;
			}
		</style>
	</head>
	<body>
		<div id="addManagerApp" v-cloak>
			<div class="contaner" v-loading.fullscreen.lock="fullscreenLoading">
				<div class="section-header">
					权限 -添加管理员
				</div>
				<hr class="hr-style" />
				<div class="my_height_20 managerContent">
					<el-form ref="form" :model="form" label-width="80px">
						<el-form-item label="用户名">
							<el-input v-model="form.username" placeholder="请输入用户名"></el-input>
						</el-form-item>
						<el-form-item label="密码">
							<el-input v-model="form.password" placeholder="请输入密码" show-password></el-input>
						</el-form-item>
						<el-form-item label="确认密码">
							<el-input v-model="form.configPassword" placeholder="请输入确认密码" show-password></el-input>
						</el-form-item>
						<el-form-item label="用户昵称">
							<el-input v-model="form.nickname" placeholder="请输入用户昵称"></el-input>
						</el-form-item>
						<el-form-item label="用户头像">
						<el-upload
						  :action="uploadUrl"
						  :before-remove="beforeRemove"
						  list-type="picture"
						  :limit="1"
						  :on-exceed="handleImgExceed"
						  :file-list="fileList" :on-success="handleImgSuccess">
						  <el-button size="small" type="primary">点击上传</el-button>
						</el-upload>
						</el-form-item>
						<el-row>
							 <el-col :span="4">
								 <el-form-item label="级别">
								 <el-radio-group v-model="form.grade">
								     <el-radio :label="1">总管(拥有root相同的权限)</el-radio>
								     <el-radio :label="2">店长(能操作和钱相关的权限)</el-radio>
								     <el-radio :label="3">其他</el-radio>
								   </el-radio-group>
								   </el-form-item>
							 </el-col>
						</el-row>
						
						<el-form-item>
							<el-button type="primary"  @click="configManagerSuper">立即创建</el-button>
						</el-form-item>
						
					</el-form>
				</div>
			</div>

		</div>
	</body>
</html>
